//
// Created by zhengjuping on 24-9-12.
//

#ifndef ENV_II_BT_ENVIISERVER_H
#define ENV_II_BT_ENVIISERVER_H
#include "GattCharacteristic.h"
#include "GattsApplication.h"
#include "GattsService.h"
#include "BleServer.h"
#include "esp_log.h"
#include "memory"
#include "SensorManager.h"
#include "EnvIIGattCharacteristic.h"

class EnviiServer : public GattsService{
public:
    EnviiServer();
    virtual ~EnviiServer();

    void start();
    void stop();

private:
    std::shared_ptr<GattsService> _envBtService = nullptr;
    std::shared_ptr<EnvIIGattCharacteristic> _envCharacteristic = nullptr;
    std::shared_ptr<EnvIIGattCharacteristicDesc> _envCharacteristicDesc = nullptr;
};

#endif //ENV_II_BT_ENVIISERVER_H
